Window.onload!=

You're setting the function wrong: window. Onload = getSpanElements(); should be window. Onload = getSpanElements; You're setting the onload handler to the return value of getSpanElements() at the moment.

Absolutely right! Thanks :) – Andrej Marinic Oct 27 '09 at 22:09.

Window. Onload = getSpanElements(); should be window. Onload = getSpanElements; The code you have calls the getSpanElements function and assigns its return value as the onload event handler.

You're wrongly doing this: window. Onload = getSpanElements(); which sets the window. Onload to the result of the call to the function getSpanElements (undefined).

You should do this instead: window. Onload = getSpanElements.

1 actually, the function returns undefined, not null – Christoph Oct 27 '09 at 22:08 Edited now, thanks Christoph :) – Seb Oct 27 '09 at 22:09.

You might want to move your window. Onload assignment below the getSpanElements declaration: Untitled Document test At the point in your code where you're assigning the window. Onload event handler, getSpanElements() has not yet been defined.

Also, the line should be window. Onload=getSpanElements; not window. Onload=getSpanElements(); The function name without parentheses is a reference to the function.

With parentheses, it executes the function and the return value is assigned to window.onload.

2 Since getSpanElements is defined with the function statement rather than the function expression, it is subject to hoisting — so it doesn't need appear before the assignment in the code order. – Quentin Oct 27 '09 at 22:09 yes, I made a call instead of a reference. Thank you!

– Andrej Marinic Oct 27 '09 at 22:10.

You have to assign a reference to the function getSpanElements to window. Onload - currently, the function doesn't get executed onload, but immediately after parsing. What you actually assign is the undefined return value.In short: drop the ().

I think the window object is created before any actual elements are parsed.

I would assume so as well, however it is well aware that the collection exists, that is what confuses me. – Andrej Marinic Oct 27 '09 at 22:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.